package com.baiqian.doupo.event;

import com.baiqian.doupo.container.ContainerTypeRegistry;
import com.baiqian.doupo.gui.NaJieSmallContainerScreen;
import net.minecraft.client.gui.ScreenManager;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModBusEventHandler {
    /**纳戒的gui界面注册*/
    @SubscribeEvent
    public static void onClientSetupEvent(FMLClientSetupEvent event) {
        event.enqueueWork(() -> {
            ScreenManager.registerFactory(ContainerTypeRegistry.naJieSmallContainer.get(), NaJieSmallContainerScreen::new);
        });
    }

//    @SubscribeEvent
//    public static void a(BiomeLoadingEvent event){
//    }
}